export default [
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './user/Login',
        layout: false,
      },
    ],
  },
  {
    path: '/',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        routes: [
          {
            path: '/',
            redirect: '/welcome',
          },
          {
            path: '/welcome',
            name: 'welcome',
            component: './Welcome',
          },
          {
            path: '/external',
            name: 'ui-norm.external',
            routes: [
              {
                path: '/external/bookexternal',
                name: 'ui-norm.bookexternal',
                routes: [
                  {
                    path: '/external/bookexternal/addexternal',
                    name: 'ui-norm.addexternal',
                    component: './demo/AddExternal',
                  },
                ],
              },
            ],
          },
          {
            path: '/internal',
            name: 'ui-norm.internal',
            routes: [
              {
                path: '/internal/packageconfirm',
                name: 'ui-norm.packageconfirm',
                component: './demo/PackageConfirm',
              },
            ],
          },
          {
            path: '/preservation',
            name: 'ui-norm.preservation',
            routes: [
              {
                path: '/preservation/libraryreception',
                name: 'ui-norm.libraryreception',
                component: './demo/LibraryReception',
              },
            ],
          },
          {
            path: '/settings',
            name: 'settings.norm.enabled',
            routes: [
              {
                path: '/settings/dictionary',
                name: 'settings.dictionary.enabled',
                component: './settings/Dictionary',
              },
            ],
          },
          {
            component: './404',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    component: './404',
  },
];
